import { request } from "@/utils/request";

/**
 * 登录
 *
 * @param data
 */
export async function sign(data?: any) {
  return request<API.Response<any>>('plugin.breed-game.admin.work.weChat.sign', {
    ...data
  });
}
/**
 * 获得手机号
 *
 * @param data
 */
export async function getPhoneNumberApi(data?: any) {
  return request<API.Response<any>>('plugin.breed-game.admin.work.weChat.getPhoneNumber', {
    ...data
  });
}
/**
 * 获取沐浴
 *
 * @param data
 */
export async function getUserCoin(data?: any) {
  return request<API.Response<any>>('plugin.breed-game.admin.work.user.getUserCoin', {
    ...data
  });
}
/**
 * 领养狗
 *
 * @param data
 */
export async function adoptGoods(data?: any) {
  return request<API.Response<any>>('plugin.breed-game.admin.business.userAdopt.adoptGoods', {
    ...data
  });
}
/**
 * 转沐浴露
 *
 * @param data
 */
export async function sendUserCoin(data?: any) {
  return request<API.Response<any>>('plugin.breed-game.admin.work.user.sendUserCoin', {
    ...data
  });
}
/**
 * 狗圈头部信息 //可投放数量
 *
 * @param data
 */
export async function getGoodsLaunchNum(data?: any) {
  return request<API.Response<any>>('plugin.breed-game.admin.business.userLaunch.getGoodsLaunchNum', {
    ...data
  });
}
/**
 * 投放狗狗
 *
 * @param data
 */
export async function goodsLaunch(data?: any) {
  return request<API.Response<any>>('plugin.breed-game.admin.business.userLaunch.goodsLaunch', {
    ...data
  });
}
/**
 * 投放狗狗
 *
 * @param data
 */
export async function cancelLaunch(data?: any) {
  return request<API.Response<any>>('plugin.breed-game.admin.business.userLaunch.cancelLaunch', {
    ...data
  });
}
/**
 * 领养中狗总数
 *
 * @param data
 */
export async function adoptionGoods(data?: any) {
  return request<API.Response<any>>('plugin.breed-game.admin.business.userAdopt.adoptionGoods', {
    ...data
  });
}
/**
 * 领养列表
 *
 * @param data
 */
export async function getAdoptPond(data?: any) {
  return request<API.Response<any>>('plugin.breed-game.admin.business.userAdopt.getAdoptPond', {
    ...data
  });
}
/**
 * 取消领养
 *
 * @param data
 */
export async function cancelAdopt(data?: any) {
  return request<API.Response<any>>('plugin.breed-game.admin.business.userAdopt.cancelAdopt', {
    ...data
  });
}
/**
 * 狗圈
 *
 * @param data
 */
export async function getUserGoodsIndex(data?: any) {
  return request<API.Response<any>>('plugin.breed-game.admin.work.user.getUserGoodsIndex', {
    ...data
  });
}
/**
 * 等待洗澡的狗狗
 *
 * @param data
 */
export async function getGoodsWash(data?: any) {
  return request<API.Response<any>>('plugin.breed-game.admin.business.userWash.getGoodsWash', {
    ...data
  });
}
/**
 * 洗单只
 *
 * @param data
 */
export async function washOne(data?: any) {
  return request<API.Response<any>>('plugin.breed-game.admin.business.userWash.washOne', {
    ...data
  });
}
/**
 * 洗全部
 *
 * @param data
 */
export async function washBatch(data?: any) {
  return request<API.Response<any>>('plugin.breed-game.admin.business.userWash.washBatch', {
    ...data
  });
}
/**
 * 投全部
 *
 * @param data
 */
export async function goodsLaunchOnce(data?: any) {
  return request<API.Response<any>>('plugin.breed-game.admin.business.userLaunch.goodsLaunchOnce', {
    ...data
  });
}
/**
 * 待TA人领养
 *
 * @param data
 */
export async function getNoAdopt(data?: any) {
  return request<API.Response<any>>('plugin.breed-game.admin.business.userLaunch.getNoAdopt2', {
    ...data
  });
}
/**
 * 养肥
 *
 * @param data
 */
export async function getFattenGoods(data?: any) {
  return request<API.Response<any>>('plugin.breed-game.admin.business.userWash.getFattenGoods', {
    ...data
  });
}
/**
 * 获得微信太阳码
 *
 * @param data
 */
export async function getWxCode(data?: any) {
  return request<API.Response<any>>('plugin.breed-game.admin.work.weChat.getWxCode', {
    ...data
  });
}
/**
 * 记录推广关系
 *
 * @param data
 */
export async function setShareInfo(data?: any) {
  return request<API.Response<any>>('plugin.breed-game.admin.work.weChat.setShareInfo', {
    ...data
  });
}
/**
 * 认领区
 *
 * @param data
 */
export async function getAdoptPondInfo(data?: any) {
  return request<API.Response<any>>('plugin.breed-game.admin.business.userAdopt.getAdoptPondInfo', {
    ...data
  });
}

/**
 * 我的伙伴
 *
 * @param data
 */
export async function getUserPartner(data?: any) {
  return request<API.Response<any>>('plugin.breed-game.admin.work.user.getUserPartner2', {
    ...data
  });
}
/**
 * 我的伙伴-详情
 *
 * @param data
 */
export async function getUserPartnerDetail(data?: any) {
  return request<API.Response<any>>('plugin.breed-game.admin.work.user.getUserPartnerDetail', {
    ...data
  });
}

/**
 * 首页狗状态
 *
 * @param data
 */
export async function getWashStateIndex(data?: any) {
  return request<API.Response<any>>('plugin.breed-game.admin.business.userWash.getWashStateIndex', {
    ...data
  });
}
/**
 * 公众号状态
 *
 * @param data
 */
export async function firstIndex(data?: any) {
  return request<API.Response<any>>('plugin.breed-game.admin.work.weChat.firstIndex', {
    ...data
  });
}
/**
 * 成功置换
 *
 * @param data
 */
export async function getLanuchPondEnd(data?: any) {
  return request<API.Response<any>>('plugin.breed-game.admin.business.userAdopt.getLanuchPondEnd', {
    ...data
  });
}
/**
 * 置换状态
 *
 * @param data
 */
export async function getAdoptState(data?: any) {
  return request<API.Response<any>>('plugin.breed-game.admin.work.weChat.getAdoptState', {
    ...data
  });
}
/**
 * 查询银行卡
 *
 * @param data
 */
export async function showBankCard(data?: any) {
  return request<API.Response<any>>('plugin.breed-game.frontend.breedWithdraw.showBankCard', {
    ...data
  });
}
/**
 * 更新银行卡
 *
 * @param data
 */
export async function editBankCard(data?: any) {
  return request<API.Response<any>>('plugin.breed-game.frontend.breedWithdraw.editBankCard', {
    ...data
  });
}
/**
 * 回购
 *
 * @param data
 */
export async function withdraw(data?: any) {
  return request<API.Response<any>>('plugin.breed-game.frontend.breedWithdraw.withdraw', {
    ...data
  });
}
/**
 * 上传图片
 *
 * @param data
 */
export async function uploadInvoiceImg(data?: any) {
  return request<API.Response<any>>('plugin.breed-game.frontend.breedWithdraw.uploadInvoiceImg', {
    ...data
  });
}
/**
 * 回购列表
 *
 * @param data
 */
export async function getWithdrawList(data?: any) {
  return request<API.Response<any>>('plugin.breed-game.frontend.breedWithdraw.getWithdrawList', {
    ...data
  });
}
/**
 * 回购详情
 *
 * @param data
 */
export async function getWithdrawById(data?: any) {
  return request<API.Response<any>>('plugin.breed-game.frontend.breedWithdraw.getWithdrawById', {
    ...data
  });
}
/**
 * 获得平均置换时间
 *
 * @param data
 */
export async function getSetInfo(data?: any) {
  return request<API.Response<any>>('plugin.breed-game.admin.work.user.getSetInfo', {
    ...data
  });
}
/**
 * 领养狗
 *
 * @param data
 */
export async function getGoodsAdoptNum(data?: any) {
  return request<API.Response<any>>('plugin.breed-game.admin.business.userAdopt.getGoodsAdoptNum', {
    ...data
  });
}





// 激活（额度释放后的激活接口）
export async function quotaActive(data?: any) {
  return request<API.Response<any>>('plugin.breed-game.admin.business.breedQuota.active', {
    ...data
  });
}
// 新增：查询单位额度（每只激活换取额度）
export async function getQuotaActiveNum(data?: any) {
  return request<API.Response<any>>('plugin.breed-game.admin.business.userLaunch.getQuotaActiveNum', {
    ...data
  });
}




